﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Runtime.Serialization;
namespace Server_NhaSach.DataTransferObject
{
    [DataContract]
    public class CTHDBanSiDTO
    {
        #region "Khai báo các biến"        
        private string _maMH;
        private string _maHDBS;
        private double _donGia;
        private int _soLuong;
        private float _chietKhau;
        private double _thanhTien;
        #endregion
        #region "Khai báo các thuộc tính"
        [DataMember]
        public string MaMH
        {
            get { return _maMH; }
            set { _maMH = value; }
        }
        [DataMember]
        public string MaHDBS
        {
            get { return _maHDBS; }
            set { _maHDBS = value; }
        }
        [DataMember]
        public double DonGia
        {
            get { return _donGia; }
            set { _donGia = value; }
        }
        [DataMember]
        public int SoLuong
        {
            get { return _soLuong; }
            set { _soLuong = value; }
        }
        [DataMember]
        public float ChietKhau
        {
            get { return _chietKhau; }
            set { _chietKhau = value; }
        }
        [DataMember]
        public double ThanhTien
        {
            get { return _thanhTien; }
            set { _thanhTien = value; }
        }
        #endregion
        #region "Khai báo các contructor"
        public CTHDBanSiDTO() { }
        public CTHDBanSiDTO(string maMH, string maHDBS, double donGia, int soLuong, float chietKhau, double thanhTien) 
        {
            this.MaMH = maMH;
            this.MaHDBS = maHDBS;
            this.DonGia = donGia;
            this.SoLuong = soLuong;
            this.ChietKhau = chietKhau;
            this.ThanhTien = thanhTien;
        }
        public CTHDBanSiDTO(CTHDBanSiDTO CTHDBanSi) 
        {
            this.MaMH = CTHDBanSi.MaMH;
            this.MaHDBS = CTHDBanSi.MaHDBS;
            this.DonGia = CTHDBanSi.DonGia;
            this.SoLuong = CTHDBanSi.SoLuong;
            this.ChietKhau = CTHDBanSi.ChietKhau;
            this.ThanhTien = CTHDBanSi.ThanhTien;
        }
        #endregion
    }
}